package com.huoyun.user.dao;

import java.util.List;

import com.huoyun.base.dao.BaseDao;
import com.huoyun.user.bean.Complaint;
import com.huoyun.user.dao.evt.GetComplaintsByUserIdEvt;

public interface ComplaintDao extends BaseDao<Complaint> {
	public int insertComplaint(Complaint complaint);
	
	public int updateComplaint(Complaint complaint);
	
	public int deleteComplaint(long complaintId);
	
	public Complaint getComplaintById(long id);
	
	public long getComplaintCountByUserid(long userId);
	
	public List<Complaint> queryList(GetComplaintsByUserIdEvt complaintsByUserIdEvt);
}
